<template>
	<view>
		<!-- 法币商户 -->
		<cnyOrder2  ></cnyOrder2>
	</view>
</template>

<script>
	// import btcOrder from '@/components/btcOrder.vue'
	import cnyOrder2 from '@/components/cnyOrder2.vue'
	// import cnyOrder from '@/components/cnyOrder.vue'
	export default {
		data() {
			return {
				TabCur: 0,
				scrollLeft: 0,
				menu: ['收款方式', '商户挂单'],
				uri: ['/pages/address2/address', '/pages/trade2/add'],
				ptype1: 'wall2',
				ptype2: 'wall1',
				salename: 'BTC',
				buyname: 'USDT',
			}
		},
		components: {
			// cnyOrder,
			// btcOrder,
			cnyOrder2
		},
		onShow() {
			setTimeout(() => {
				// this.$refs.child.loadTabbars(); //刷新委托列表
				if(1==this.TabCur){
					this.$refs.child.loadNewsList('refresh');
				} 
			}, 100)
		},
		methods: {
			tabSelect(e) {
				this.TabCur = e.currentTarget.dataset.id;
				this.scrollLeft = (e.currentTarget.dataset.id - 1) * 60
			},
			actionSheetTap() {
				uni.showActionSheet({
					// title:'标题',
					itemList: this.menu,
					success: (e) => {
						uni.navigateTo({
							url: this.uri[e.tapIndex]
						})
					}
				})
			}
		}
	}
</script>

<style>
	.nav .cu-item.cur {
		border-bottom: 0px;
	}
</style>
